public class Test {
    public static void fun(int a){
        if(a==1){
            throw new NullPointerException();//运行时异常
        }
    }
    public static void main(String[] args){
        int a=1;
      try{
          fun(a);
      }catch (NullPointerException e){
          e.printStackTrace();
      }o





























































    }
}
